/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cn.ekuma.epos.qkorder;

import cn.ekuma.epos.qkorder.orderbag.view.JOrdersBagView;
import com.openbravo.bean.erp.OrderLine;

import java.awt.Component;
/**
 *
 * @author Administrator
 */
public class JPanelOrderView extends JPanelOrder{
   JLinkContainerPanel containerPanel;
   
	public JPanelOrderView() {
	super();
    }

	@Override
    protected JOrdersBag getJOrdersBag() {
        return new JOrdersBagView(m_App, this, dlSales);
    }

     @Override
    protected Component getSouthComponent() {
        containerPanel=new JLinkContainerPanel(this);
        return containerPanel;
    }

    @Override
    protected void resetSouthComponent() {
        containerPanel.resetComponent();
    }

    @Override
    public String getTitle() {
        return null;
    }

    @Override
    public void orderLineSelectedChanged(OrderLine line) {
         String productID=line.getProductID();
         containerPanel.fireProductChanged(productID,line);
    }

    @Override
    protected Component getSouthComponentToolBar() {
       return containerPanel.getViewToolbar();
    }

    @Override
    protected void printPartialTotals() {
        containerPanel.printPartialTotals();
    }
}
